<div class="container portfolio-style">
  <div class="row">
    <div class="col-md-7">
      <%= image_tag portfolio_img(@portfolio_item.main_image.to_s, "main"), width: "100%", height: "100%" %>
    </div>
    <div class="col-md-5"> 
      <h1><%= @portfolio_item.title %></h1>

      <hr>

      <em><%= @portfolio_item.subtitle %></em>

      <p><%=  @portfolio_item.body %></p>

      <hr>

      <h2>Technologies Used:</h2>

      <% @portfolio_item.technologies.each do |t| %>
      <p><%= t.name %></p>
      <% end %>
      <% if logged_in?(:site_admin) %>
        <%= link_to "Edit Item", edit_portfolio_path(@portfolio_item), class: "btn btn-sm btn-secondary" %>
      <% end %>
    </div>
  </div>
</div>
